#!/bin/sh
set -e

echo "[Desktop Entry]" >> /usr/share/colortool/colortool.desktop
echo "Name=colortool" >> /usr/share/colortool/colortool.desktop
echo "Comment=Colorspace converter and color chooser" >> /usr/share/colortool/colortool.desktop
echo "Exec=/usr/bin/colortool" >> /usr/share/colortool/colortool.desktop
echo "Icon=/usr/share/pixmaps/colortool.png" >> /usr/share/colortool/colortool.desktop
echo "Terminal=false" >> /usr/share/colortool/colortool.desktop
echo "Type=Application" >> /usr/share/colortool/colortool.desktop
echo "Categories=GNOME;GTK;Graphics;" >> /usr/share/colortool/colortool.desktop
	
desktop-file-install \
--add-category="Graphics" \
--delete-original \
--dir=/usr/share/applications \
/usr/share/colortool/colortool.desktop
